package com.zhou;

import java.util.*;

/**
 * T2
 *
 * @author zhouxianfeng
 * @date 2021-8-17
 */
public class T2 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNextInt()) {
            int size = in.nextInt();
            List<String> strings = new ArrayList<>(size);
            for (int i = 0; i < size; i++) {
                strings.add(in.next());
            }
            strings.forEach(t -> searchString(t));

        }
    }

    public static void searchString(String string) {
        String[] split = string.split("0");
        Map<Integer, List<String>> result = new HashMap<>();
        for (String s : split) {
            if (s != "") {
                List<String> repeatString = result.get(s.length());
                if (repeatString != null) {
                    repeatString.add(s);
                } else {
                    ArrayList<String> strings = new ArrayList<>();
                    strings.add(s);
                    result.put(s.length(), strings);
                }
            }
        }
        Set<Integer> integers = result.keySet();
        TreeSet<Integer> treeSet1 = new TreeSet<>();
        treeSet1.addAll(integers);
        TreeSet<Integer> treeSet = (TreeSet) treeSet1.descendingSet();
        int score = 0;
        int add = 1;
        Iterator<Integer> iterator = treeSet.iterator();
        while (iterator.hasNext()) {
            Integer next = iterator.next();
            List<String> val = result.get(next);
            for (int i = 0; i < val.size(); i++) {
                if (next > 1) {
                    score += (add * next);
                    add *= -1;
                    string.replaceFirst(val.get(0), "");
                } else if (next == 1) {
                    if (val.size() % 2 == 0) {
                        break;
                    } else {
                        char start = string.charAt(0);
                        char end = string.charAt(string.length() - 1);
                        if ((start == '0' && end != '0') || (start != '0' && end == '0')) {
                            score += (add);
                        } else {
                            score += (-add);
                        }
                    }
                }
            }
        }

        if (score == 0) {
            System.out.println("Draw");
        } else if (score < 0) {
            score *= (-1);
            System.out.println("Niuniu");
            System.out.println(score + "");
        } else {
            System.out.println("Niumei");
            System.out.println(score + "");
        }

    }


}
